

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
	<style type="text/css">
<!--
.dashChart
{
  margin: 1.5em 0 1em 0.5em;
}
-->
	</style>
	<title>Dashboard</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
        </div>
        <div class="body">
            <h1>Dashboard</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
	    <span>Current as of: ${asOfDate}</span><!-- ff9900 -->
<div class="dashChart"><g:pieChart title='Tags by Farmer' dataType='text' labels="${tbfNicknames}" data="${tbfSlices}" /></div>
<div class="dashChart"><g:barChart title='Tag Rate Last 7 Days' type='bvs' dataType='text' axes='x,y' axesLabels="${[1:[0.toString(),(trlwData.max().toFloat()/10).toString()+' %']]}" data="${trlwData}" /></div>
<div class="dashChart"><g:barChart title='Tag Rate Today by Farmer' type='bvs' dataType='text' axes='x,y' axesLabels="${[1:[0.toString(),(etData.max().toLong()/10).toString()+' %']]}" data="${etData}" /></div>
<div class="dashChart"><g:barChart title='To Date Tags by Time of Day' type='bvs' dataType='text' size="${[800,200]}" axes='x,y' axesLabels="${[1:[0,tddData.max()]]}" data="${tddData}" /></div>
        </div>
    </body>
</html>
